<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>账单管理系统</title>
    <link rel="stylesheet" href="__PLUGIN_PATH__/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="__PLUGIN_PATH__/layui/css/layui.css">
    <link rel="stylesheet" href="__STATIC_PATH__/css/style.css">
    <link rel="icon" href="__STATIC_PATH__/image/code.png">

</head>
<body>

<!-- layout admin -->
<div class="layui-layout layui-layout-admin"> <!-- 添加skin-1类可手动修改主题为纯白，添加skin-2类可手动修改主题为蓝白 -->
    <!-- header -->
    <div class="layui-header my-header">
        <a href="index.html">
            <!--<img class="my-header-logo" src="" alt="logo">-->
            <div class="my-header-logo">账单管理系统</div>
        </a>
        <!--<div class="my-header-btn">-->
            <!--<button class="layui-btn layui-btn-small btn-nav"><i class="layui-icon">&#xe65f;</i></button>-->
        <!--</div>-->

        <!-- 顶部左侧添加选项卡监听 -->
        <ul class="layui-nav" lay-filter="side-top-left" >
            {foreach $menu as $k => $v}
            <li class="layui-nav-item ">
                {if condition="count($v['son']) > 0"}
                <a href="javascript:;">
                    <i class="fa {$v['icon']}"></i>
                    <span class="menu_name">{$v['name']}</span>
                </a>
                <dl class="layui-nav-child">
                    {foreach $v['son'] as $sk => $sv}
                    <dd>
                        <a href="javascript:;" href-url="{:url($sv['module'] .'/'. $sv['controller'] .'/'. $sv['action'] ,$sv['params'])}">
                            <i class="fa {$sv['icon']}"></i>
                            <span class="menu_name">{$sv['name']}</span>
                        </a>
                    </dd>
                    {/foreach}
                </dl>
                {else/}
                <a href="javascript:;" href-url="{:url( $v['module'] .'/'. $v['controller'] .'/'. $v['action'] ,$v['params'] )}">
                    <i class="fa {$v['icon']}"></i>
                    <span class="menu_name">{$v['name']}</span>
                </a>
                {/if}
            </li>
            {/foreach}
        </ul>

        <!-- 顶部右侧添加选项卡监听 -->
        <ul class="layui-nav my-header-user-nav" lay-filter="side-top-right">
            <!--<li class="layui-nav-item">-->
                <!--<a class="name" href="javascript:;"><i class="fa fa-recycle"></i>清空缓存</a>-->
            <!--</li>-->
            <!--<li class="layui-nav-item">-->
                <!--<a class="name" href="javascript:;"><i class="layui-icon">&#xe629;</i>主题</a>-->
                <!--<dl class="layui-nav-child">-->
                    <!--<dd data-skin="0"><a href="javascript:;">默认</a></dd>-->
                    <!--<dd data-skin="1"><a href="javascript:;">纯白</a></dd>-->
                    <!--<dd data-skin="2"><a href="javascript:;">蓝白</a></dd>-->
                <!--</dl>-->
            <!--</li>-->
            <li class="layui-nav-item">
                <a class="name" href="javascript:;"><img src="__STATIC_PATH__/image/code.png" alt="logo"> {:session('manager.login_name')} </a>
                <dl class="layui-nav-child">
                    <dd><a class="link" href="{:url('base/manager/changepwd')}" data-type="page"><i class="layui-icon">&#xe621;</i>修改密码</a></dd>
                    <dd><a href="{:url('login/out')}" class="link" data-type="post" data-action="{action:'logout'}"><i class="fa fa-sign-out "></i>退出</a></dd>
                </dl>
            </li>
        </ul>

    </div>
    <!-- side -->
    <div class="layui-side my-side" style="display: none;">
        <div class="layui-side-scroll">
            <!-- 左侧主菜单添加选项卡监听 -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">

                {foreach $menu as $k => $v}
                <li class="layui-nav-item ">
                    {if condition="count($v['son']) > 0"}
                        <a href="javascript:;">
                            <i class="fa {$v['icon']}"></i>
                            <span class="menu_name">{$v['name']}</span>
                        </a>
                        <dl class="layui-nav-child">
                            {foreach $v['son'] as $sk => $sv}
                            <dd>
                                <a href="javascript:;" href-url="{:url($sv['module'] .'/'. $sv['controller'] .'/'. $sv['action'] ,$sv['params'] )}">
                                    <i class="fa {$sv['icon']}"></i>
                                    <span class="menu_name">{$sv['name']}</span>
                                </a>
                            </dd>
                            {/foreach}
                        </dl>
                    {else/}
                        <a href="javascript:;" href-url="{:url($v['module'] .'/'. $v['controller'] .'/'. $v['action'] ,$v['params'])}">
                            <i class="fa {$v['icon']}"></i>
                            <span class="menu_name">{$v['name']}</span>
                        </a>
                    {/if}
                </li>
                {/foreach}

            </ul>

        </div>
    </div>
    <!-- body -->
    <div class="layui-body my-body" style="left:0px;">
        <div class="layui-tab layui-tab-card my-tab" lay-filter="card" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1"><span><i class="fa fa-home"></i>首页</span></li>
            </ul>
            <div class="layui-tab-content" >
                <div class="layui-tab-item layui-show">
                    <iframe id="iframe" src="{:url('index/main')}" frameborder="0" ></iframe>
                </div>
            </div>
        </div>
    </div>

</div>



<!-- 右键菜单 -->
<div class="my-dblclick-box none">
    <table class="layui-tab dblclick-tab">
        <tr class="card-refresh">
            <td><i class="layui-icon">&#x1002;</i>刷新当前标签</td>
        </tr>
        <tr class="card-close">
            <td><i class="layui-icon">&#x1006;</i>关闭当前标签</td>
        </tr>
        <tr class="card-close-all">
            <td><i class="layui-icon">&#x1006;</i>关闭所有标签</td>
        </tr>
    </table>
</div>

<script type="text/javascript" src="__PLUGIN_PATH__/layui/layui.js"></script>
<script type="text/javascript" src="__PLUGIN_PATH__/lay-extend-module/config.js"></script>
<script type="text/javascript" src="__PLUGIN_PATH__/lay-extend-module/main.js"></script>
<script type="text/javascript">


</script>
</body>
</html>